package com.anxinr.pool;

import com.anxinr.info.Img;
import com.anxinr.test.FP;

/**
 * @author anxinr
 */
public class InfoClass implements Runnable {
    @Override
    public void run() {
        System.out.println("服务器:" + Thread.currentThread().getName() + "上传数据");
        switch (Thread.currentThread().getName()){
            case "c1" :
                new Img().addinfo(FP.string.split(",")[0]);
                System.out.println("数据：" + FP.string.split(",")[0]);
                break;
            case "c2" :
                new Img().addinfo(FP.string.split(",")[1]);
                System.out.println("数据：" + FP.string.split(",")[1]);

                break;
            case "c3" :
                new Img().addinfo(FP.string.split(",")[2]);
                System.out.println("数据：" + FP.string.split(",")[2]);
                break;
            case "c4" :
                new Img().addinfo(FP.string.split(",")[3]);
                System.out.println("数据：" + FP.string.split(",")[3]);
                break;
            default:
                System.out.println("暂无服务");
        }
    }
}
